const express = require('express')
const app = new express()

app.set('view engine', 'ejs')
/**
 * 内置中间件
 */
app.use(express.static('public'))
app.use('/upload', express.static('upload'))

let routerModule = require('./router/index')
app.use('/', routerModule)

app.listen('3000', function() {
  console.log('Server is Running at 127.0.0.1:3000 ')
})
